package com.tensquare.base;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

@SpringBootApplication
public class BaseApplication {
    //@CrossOrigin,在controller表示跨域支持
    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class);
    }



    //想要返回值在容器中,需要加水备案注解
    @Bean
    public IdWorker idWorker(){
        return  new IdWorker(1,1);
    }
}
